<?php defined('SYSPATH') or die('No direct script access.');
/**
 * 管理后台菜单控制
 *
 * @author  Yellow.Chow <aultoale@gmail.com>
 * @version $Id: menu.php 245 2012-06-12 03:40:39Z yellow.chow $
 * @license http://www.gnu.org/licenses/gpl-3.0.html    GPL 3
 */
return array(
    'store_item' => array(
        '商品列表' => array(
            'url' => URL::site('admin/store_item'),
        ),
    ),
    'article' => array(
        '文章列表' => array(
            'url' => URL::site('admin/article'),
            'privs' => array('article.list', 'article.add', 'article.edit', 'article.del'),
        ),
        '文章分类' => array(
            'url' => URL::site('admin/article_category'),
            'privs' => array('article.category.list', 'article.category.add', 'article.category.edit', 'article.category.del'),
        ),
    ),
    'member' => array(
        '会员列表' => array(
            'url' => URL::site('admin/member'),
            'privs' => array('member.list', 'member.profile'),
        ),
    ),
    'system' => array(
        '系统参数' => array(
            'url' => URL::site('admin/system/config'),
            'privs' => array('system.config'),
        ),
        '管理员列表' => array(
            '列表' => array(
                'url' => URL::site('admin/manager'),
                'privs' => array('manager.list', 'manager.add', 'manager.edit', 'manager.del'),
            ),
            '角色' => array(
                'url' => URL::site('admin/manager_role'),
                'privs' => array('manager.role.list', 'manager.role.add', 'manager.role.edit', 'manager.role.assign', 'manager.role.del'),
            ),
        ),
        '权限设置' => array(
            '资源' => array(
                'url' => URL::site('admin/manager_resource'),
                'privs' => array('manager.resource.list', 'manager.resource.add', 'manager.resource.edit', 'manager.resource.del'),
            ),
            '权限' => array(
                'url' => URL::site('admin/manager_privilege'),
                'privs' => array('manager.privilege.list', 'manager.privilege.add', 'manager.privilege.edit', 'manager.privilege.del'),
            ),
        ),
    ),
);